layui.use(['form','layer','element','laydate','laytpl'], function () {
     var laydate = layui.laydate,laytpl = layui.laytpl;

     $.get ('/user/recommend' , null, function (data) {
         if(data.rel){
            var result = data.result;
            $("#crtName").html(data.result.crtName);
            $("#qrUrl").html("<a href='"+data.result.qrUrl+"' target='_blank'>"+ data.result.qrUrl+"</a>" );
            $("#qrCode").attr("src",data.result.qrCode);

         }
     });


});
function setLabelValues(data) {
    for (var p in data) {
        $("#" + p + "").html(data[p]);
    }
}